home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Meeting Pearls 4
/
Meeting Pearls Vol. IV (1996)(GTI - Schatztruhe)[!].iso
/
Pearls
/
dev
/
C-Lib
/
AsyncIO
/
source
/
RecordAsyncFailure.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-11-16
|
382b
|
16 lines
#include "async.h"
/* this function records a failure from a synchronous DOS call into the
* packet so that it gets picked up by the other IO routines in this module
*/
VOID
AS_RecordSyncFailure( AsyncFile *file )
{
#ifdef ASIO_NOEXTERNALS
struct DosLibrary *DOSBase = file->af_DOSBase;
#endif
file->af_Packet.sp_Pkt.dp_Res1 = -1;
file->af_Packet.sp_Pkt.dp_Res2 = IoErr();
}